/*
 * @Descripttion: 
 * @version: 
 * @Author: Lee
 * @Date: 2020-05-27 11:00:19
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2020-05-27 16:08:33
 */
export default class Deep {
    constructor() {
        // 存到所有的watcher
        this.subs = {};
    }
    addSub(target) {
        this.subs[target.uid] = target;
    }
    notify() {
        for (let uid in this.subs) {
            this.subs[uid].update();
        }
    }
}